package model;

import annotion.Column;
import annotion.Id;
import annotion.Table;

import java.io.Serializable;
import java.math.BigDecimal;
@Table("shop_car")
public class ShopCar implements Serializable {
    @Id
    private Integer id;
    @Column("user_id")
    private Integer userId;
    @Column("goods_id")
    private Integer goodsId;
    private Integer count;
    private BigDecimal price;
    @Column("goods_name")
    private String goodsName;

    public ShopCar(Integer userId,Integer goodsId, Integer count, BigDecimal price, String goodsName) {
        this.userId = userId;
        this.goodsId = goodsId;
        this.count = count;
        this.price = price;
        this.goodsName = goodsName;
    }

    public ShopCar() {
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    @Override
    public String toString() {
        return "ShopCar{" +
                "id=" + id +
                ", userId=" + userId +
                ", goodsId=" + goodsId +
                ", count=" + count +
                ", price=" + price +
                '}';
    }
}
